package com.mycompany.app.hr.pa.model.block4employee;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@Embeddable
public class EmployeeBasicInfo {

    @Column(name="last_name")
    private String lastName;
    
    @Column(name="first_name")
    private String firstName;
    
    @Column(name="full_name")
    private String fullName;
    
    @Column(name="middle_name")
    private String middleName;
    
    @Column(name="chinese_name")
    private String chineseName;
    
    @Column(name="sex")
    private String sex;
    
    @Column(name="birthday")
    private Date birthday;
    
    @Column(name="national_identifier")
    private String nationalIdetifier;
    
    @Column(name="marital_status")
    private String maritalStatus;
    
    @Transient
    private String governmentPersonFile;
    @Transient
    private String registerResidence;
    
    
    //=======================================================
    @Override
    public String toString() {

        return ToStringBuilder.reflectionToString(this,
                ToStringStyle.SHORT_PREFIX_STYLE);
    }
    //=======================================================
    
    public String getLastName() {
    
        return lastName;
    }
    public void setLastName(String lastName) {
    
        this.lastName = lastName;
    }
    public String getFirstName() {
    
        return firstName;
    }
    public void setFirstName(String firstName) {
    
        this.firstName = firstName;
    }
    public String getFullName() {
    
        return fullName;
    }
    public void setFullName(String fullName) {
    
        this.fullName = fullName;
    }
    public String getMiddleName() {
    
        return middleName;
    }
    public void setMiddleName(String middleName) {
    
        this.middleName = middleName;
    }
    public String getChineseName() {
    
        return chineseName;
    }
    public void setChineseName(String chineseName) {
    
        this.chineseName = chineseName;
    }
    public String getSex() {
    
        return sex;
    }
    public void setSex(String sex) {
    
        this.sex = sex;
    }
    public Date getBirthday() {
    
        return birthday;
    }
    public void setBirthday(Date birthday) {
    
        this.birthday = birthday;
    }
    public String getNationalIdetifier() {
    
        return nationalIdetifier;
    }
    public void setNationalIdetifier(String nationalIdetifier) {
    
        this.nationalIdetifier = nationalIdetifier;
    }
    public String getMaritalStatus() {
    
        return maritalStatus;
    }
    public void setMaritalStatus(String maritalStatus) {
    
        this.maritalStatus = maritalStatus;
    }
    public String getGovernmentPersonFile() {
    
        return governmentPersonFile;
    }
    public void setGovernmentPersonFile(String governmentPersonFile) {
    
        this.governmentPersonFile = governmentPersonFile;
    }
    public String getRegisterResidence() {
    
        return registerResidence;
    }
    public void setRegisterResidence(String registerResidence) {
    
        this.registerResidence = registerResidence;
    }
    
    
    
}
